{$_TOP$}
<script>
function change(obj,i) {
	he=parseInt(obj.style.height);
	if (he>=250&&he<=400)
	   obj.style.height=he+i+'px';
	else 
	   obj.style.height='250px';
}

function loadTemplate(sTagName,sEditName){
	document.all.TemplateContent.value = xmlTemplate.selectSingleNode("//Template" + sTagName).text;
	document.all.TemplateTag.value = sTagName;
	document.all.editTag.innerText = sEditName;
}

function chkSubmit(){
	if (document.all.TemplateTag.value == '')
	{
		alert("{$Language_Template_CheckForm$}");
		return false;
	}
	else{
		return true;
	}
}
</script>
<xml id=xmlTemplate>
	<Template>
		<TemplateName>{$TemplateName$}</TemplateName>
		<TemplateCSS><![CDATA[{$CSS$}]]></TemplateCSS>
		<TemplateHead><![CDATA[{$Head$}]]></TemplateHead>
		<TemplateFoot><![CDATA[{$Foot$}]]></TemplateFoot>
		<TemplateIndex><![CDATA[{$Index$}]]></TemplateIndex>
		<TemplateList><![CDATA[{$List$}]]></TemplateList>
		<TemplateView><![CDATA[{$View$}]]></TemplateView>
		<TemplateSearch><![CDATA[{$Search$}]]></TemplateSearch>
		<TemplateMemberList><![CDATA[{$Member_List$}]]></TemplateMemberList>
		<TemplateImgList><![CDATA[{$Img_List$}]]></TemplateImgList>
		<TemplateError><![CDATA[{$Error$}]]></TemplateError>
		<TemplateSuccess><![CDATA[{$Success$}]]></TemplateSuccess>
	</Template>
</xml>
<TABLE cellSpacing=0 cellPadding=0 width=99% align=center border=0>
  <TBODY>
    <TR>
      <TD height="5"></TD>
    </TR>
    <TR>
      <TD><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR>
              <TD width=3 height=3><IMG height=3 src="images/O_angle_up_left.gif" width=3></TD>
              <TD width="100%" bgColor=#6795b4></TD>
              <TD width=3><IMG height=3 src="images/O_angle_up_right.gif" width=3></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
    <TR>
      <TD bgColor=#6795b4 height=25 width=130>&nbsp;</TD>
    </TR>
    <TR>
      <TD class=form_border><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR>
              <TD colspan="3" height="5"></TD>
            </TR>
            <TR>
              <TD>&nbsp;</TD>
              <TD><TABLE class=form_in cellSpacing=0 cellPadding=0 width="100%" border=0>
                  <TBODY>
                    <TR>
                      <TD class=sec_nav align=right><a href="?">{$Language_Template_List$}</a>&nbsp;|&nbsp;<a href="?atcion=edit">{$Language_Template_Add$}</TD>
                    </TR>
					<TR>
                      <TD><FIELDSET>
                        <LEGEND><SPAN id=help_topic_icon onclick=sw_help_topic()>{$Language_OperationNotice$}</SPAN></LEGEND>
                        <DIV id=help_topic>{$Language_Template_Info$}</DIV>
                        </FIELDSET></TD>
                    </TR>
                    <TR>
                      <TD height=5></TD>
                    </TR>
                    <TR>
                      <TD><FIELDSET>
                        <LEGEND>{$Language_Template_Manager$}</LEGEND>
                        <table width="100%" border="0" cellpadding="1" cellspacing="1" align="center">
                          <form name=a1 method="post" action="?atcion=save&StyleID={$TemplateID$}" onsubmit="return chkSubmit()">
						  <input type=hidden name="TemplateTag" value="">
                            <tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">{$Language_Template_TempName$}</td>
                              <td align="left">&nbsp;<b>{$TemplateName$}</b></td>
							  <td align="right"><a href="javascript:loadTemplate('Name','{$Language_Template_TempName$}')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">CSS</td>
                              <td align="left">&nbsp;{$Language_Template_Css_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('CSS','CSS')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">Head</td>
                              <td align="left">&nbsp;{$Language_Template_Head_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('Head','Head')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">Foot</td>
                              <td align="left">&nbsp;{$Language_Template_Foot_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('Foot','Foot')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">Index</td>
                              <td align="left">&nbsp;{$Language_Template_Index_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('Index','Index')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">List</td>
                              <td align="left">&nbsp;{$Language_Template_List_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('List','List')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">View</td>
                              <td align="left">&nbsp;{$Language_Template_View_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('View','View')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">Member List</td>
                              <td align="left">&nbsp;{$Language_Template_MemberList_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('MemberList','Member List')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">Img List</td>
                              <td align="left">&nbsp;{$Language_Template_ImgList_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('ImgList','Img List')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">Search</td>
                              <td align="left">&nbsp;{$Language_Template_Search_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('Search','Search')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">Error</td>
                              <td align="left">&nbsp;{$Language_Template_Error_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('Error','Error')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
							<tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor='' height="25">
                              <td width="13%" align="right">Success</td>
                              <td align="left">&nbsp;{$Language_Template_Success_Info$}</td>
							  <td align="right"><a href="javascript:loadTemplate('Success','Success')">{$Language_Comm_Edit_Operation$}</a>&nbsp;</td>
                            </tr>
                            
                            <tr bgcolor="#FFFFFF" valign="middle" onmouseover=this.style.backgroundColor='E4E8EF' onmouseout=this.style.backgroundColor=''>
                              <td align="center">{$Language_Template_CurrentEdit$}<br><span id="editTag"></span></td>
                              <td align="left" colspan="2">&nbsp;<textarea name="TemplateContent" id="TemplateContent" cols="79" rows="15" wrap="VIRTUAL"></textarea>
                                <br>&nbsp;<a href="javascript:change(document.all.TemplateContent,-40)"><img src="images/minus.gif" border=0 title="{$Language_Comm_Reduce_Input$}"></a>&nbsp;&nbsp;<a href="javascript:change(document.all.TemplateContent,40)"><img src="images/plus.gif" border=0 title="{$Language_Comm_Zoom_Input$}"></a></td>
                            </tr>
                            <tr bgcolor="#efefef">
                              <td align="left" colspan="3" height="25">&nbsp;
                                <input class="smb_btn" type="submit" name="Submit" value="{$Language_Comm_Save_Button$}">&nbsp;
                                <input class="smb_btn" type="reset" name="Submit2" value="{$Language_Comm_Reset_Button$}"></td>
                            </tr>
                          </form>
                        </table>
                        </FIELDSET></TD>
                    </TR>
                    <TR>
                      <TD height="5"></TD>
                    </TR>
                  </TBODY>
                </TABLE></TD>
              <TD>&nbsp;</TD>
            </TR>
            <TR>
              <TD>&nbsp;</TD>
              <TD>&nbsp;</TD>
              <TD>&nbsp;</TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
    <TR>
      <TD><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
          <TBODY>
            <TR>
              <TD width=3><IMG height=3 src="images/O_angle_down_left.gif" width=3></TD>
              <TD width="100%" background=images/O_angle_bottom.gif height=3></TD>
              <TD width=3><IMG height=3 src="images/O_angle_down_right.gif" width=3></TD>
            </TR>
          </TBODY>
        </TABLE></TD>
    </TR>
  </TBODY>
</TABLE>
<SCRIPT type=text/javascript>
sw_help_topic_init("");
</SCRIPT>
